﻿using Growatt.WaveData.DataSetResolve;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Growatt.OutPutDataProcess.DataSetResolve
{
    public class ParseELF
    {

        public ParseELF()
        {
          
        }
       

        public static (bool, List<string>) CallParseELF(string fileName,string name) {
            //var mianDir = Path.Combine($"{AppDomain.CurrentDomain.BaseDirectory}");//存放调用外部程序的地方
            //string elfPath = $"{mianDir}Parser\\App.elf"; //转换为App.elf
            //File.Copy(fileName, elfPath,true);
            string content = $"ParseELF.exe -arg1 App.elf -arg2 {name}";
            (bool, List<string>) result = CreatVariableAddress.callpython(content);
            return result;
        }

    }
}
